import {InMemoryDbService} from 'angular-in-memory-web-api'
export  class  InMemoryHeroDb implements InMemoryDbService {
  createDb(): {} {
    let heroes = [
      {id: 11, name: 'Mr. Nice',privilege:'USER'},
      {id: 12, name: 'Narco',privilege:'USER'},
      {id: 13, name: 'Bombasto',privilege:'USER'},
      {id: 14, name: 'Celeritas',privilege:'USER'},
      {id: 15, name: 'Magneta',privilege:'USER'},
      {id: 16, name: 'RubberMan',privilege:'ADMIN'},
      {id: 17, name: 'Dynama',privilege:'ADMIN'},
      {id: 18, name: 'Dr IQ',privilege:'ADMIN'},
      {id: 19, name: 'Magma',privilege:'ADMIN'},
      {id: 20, name: 'Tornado',privilege:'ADMIN'}];
    return {heroes};
  }

}
